package com.pro_one.dao;

import com.github.pagehelper.Page;
import com.pro_one.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MemberDao {

    Member findByTelephone(String telephone);

    void add(Member member);

    int getMembersCountByMonths(String lastDay);

    int getTodayNewMember(String today);

    int getTotalMember();

    int getMemberCountAfterDate(String date);

    public Page<Member> selectByCondition(String queryString);

    public void edit(Member member);

    public void deleteById(Integer id);

    Member findById(Integer id);

    Integer findByName(String name);

    void updateName(@Param("name") String name, @Param("id") Integer memberId);

    public List<String> findAllHealThmanagerName();

    public List<String> findAddressByMemberId(Integer id);
    public List<String> findSetmealByMemberId(Integer id);
    public List<String> findCheckgroupByMemberId(Integer id);
    public List<String> findCheckitemByMemberId(Integer id);
}
